﻿doctype html
html(lang='en')
  include ./head.jade
  body
    #bcMark
    #taskDialog
    include ./header.jade
    .container
      .main-content
        .control
          img(class="show show-block" width="24px" height="15")
          .data-handle
            button(class="add-task") 添加新问题
            button(class="del-task") 删除问题
          .show-item(style="display: none;" title="点击需要显示和隐藏的列")
            each val,key in data
              if key == "id"
                button(style="display:none" class="task-key-item selected" key="#{key}") #{val}
              else
                button(class="task-key-item selected" key="#{key}") #{val}
        .content.table(style="display: none")
          .table-responsive
            table(cellpadding="0" cellspacing="0")
              thead
                for val,key in data
                  th(key="#{key}") #{val}
              tbody
        .content.tasks
          -var status = {"todo":"新建", 'in-progress':'开发中', 'ready-for-test':'开发完成', 'done':'解决', 'refuse':'拒绝', 'feedback':'反馈'}
            for val,st in status
              div(class="#{st}")
                .status-content
                  span #{val}
                .task-content
    script(src="./../lib/jquery.js" charset="utf-8")
    script(src="./../lib/when.js" charset="utf-8")
    script(src="./../lib/underscore.js" charset="utf-8")
    script(src="./../lib/backbone.js" charset="utf-8")
    script(src="./../lib/jquery-ui-1.11.2.custom/jquery-ui.js" charset="utf-8")
    script(src="./../script/api.js" charset="utf-8")
    script(src="./../script/view.js" charset="utf-8")
    script(src="./../script/route.js" charset="utf-8")
    script(src="./../script/tasks.js" charset="utf-8")
    script(src="./../script/table.js" charset="utf-8")
    script(src="./../script/task.js" charset="utf-8")
    script(src="./../script/user.js" charset="utf-8")